package com.ccx.coachsite.http;
import org.json.JSONObject;

public class BaseResp implements Response 
{
	public static final String SUCCESS = "0";
	public static final String ERROR = "-1";

	private String status;
	private String desc;
	private String result;
	private String response;
	
	private String errorCode;

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getResponse() 
	{
		return response;
	}

	public void setResponse(String response) 
	{
		this.response = response;
	}

	public BaseResp() {
		this.status = SUCCESS;
	}

	public BaseResp(String error) {
		this.status = error;
	}

	@Override
	public String getHttpResult() {
		return result;
	}

	@Override
	public boolean isSuccess() {
		return SUCCESS.equals(status);
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}
